package com.caiyouxi.order.mapper;


import com.caiyouxi.order.model.OrderBean;
import com.caiyouxi.order.model.SelectBean;
import com.caiyouxi.restrict.model.RestrictedByRecharge;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    OrderBean get_order_by_id(String id);
    
    int insert_into_order(OrderBean bean);
    
    int updateOrder(OrderBean bean);



    List<OrderBean> get_order_by_user_condetion(RestrictedByRecharge rbr);
    List<OrderBean> get_order_by_bean(OrderBean bean);

    //获取订单列表 + 查询
    List<OrderBean> get_orders_list(OrderBean bean);
    //查询订单列表总条数
    Integer get_orders_count(OrderBean bean);
    //查询详情1
    OrderBean get_orders_info(OrderBean bean);

    //查询详情2
    SelectBean get_orders_infos(SelectBean bean);

    //查询优惠券
    List<OrderBean> get_coupon_type(OrderBean bean);
}